package com.hc.common.entity;

import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "products")
public class Products {

  @Id
  private long id;
  private String name;
  private double price;
  private String flag;
  private String goodsDesc;
  private String image;
  private long goodsStock;
  private String goodsType;

  public Products(long id, String name, double price, String flag, String goodsDesc, String image, long goodsStock, String goodsType) {
    this.id = id;
    this.name = name;
    this.price = price;
    this.flag = flag;
    this.goodsDesc = goodsDesc;
    this.image = image;
    this.goodsStock = goodsStock;
    this.goodsType = goodsType;
  }

  public Products() {
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }


  public String getFlag() {
    return flag;
  }

  public void setFlag(String flag) {
    this.flag = flag;
  }


  public String getGoodsDesc() {
    return goodsDesc;
  }

  public void setGoodsDesc(String goodsDesc) {
    this.goodsDesc = goodsDesc;
  }


  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }


  public long getGoodsStock() {
    return goodsStock;
  }

  public void setGoodsStock(long goodsStock) {
    this.goodsStock = goodsStock;
  }


  public String getGoodsType() {
    return goodsType;
  }

  public void setGoodsType(String goodsType) {
    this.goodsType = goodsType;
  }

}
